package com.jc.oss.adapter;

import com.jc.oss.entity.fileInfo;
import com.jc.oss.adapter.StorageAdapter;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author gongjiawei
 * @Date 2024/9/4 17:10
 * @注释
 */

public class AliStorageAdapter implements StorageAdapter {
    @Override
    public void createBucket(String bucket) {

    }

    @Override
    public void uploadFile(MultipartFile uploadFile, String bucket, String objectName) {

    }

    @Override
    public List<String> getAllBucket() {
        List<String> s=new ArrayList<>();
        s.add("aliyun");
        return s;
    }

    @Override
    public List<fileInfo> getAllFile(String bucket) {
        return null;
    }

    @Override
    public InputStream download(String bucket, String objectName) {
        return null;
    }

    @Override
    public void delete(String bucket) {

    }

    @Override
    public void delete(String bucket, String objectName) {

    }

    @Override
    public String getUrl(String bucket, String objectName) {
        return null;
    }
}
